package com.ruoyi.report.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.onlyoffice.domain.OnFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 报告模板模型对象 report_template_model
 * 
 * @author luguanqing
 * @date 2020-11-30
 */
@ApiModel("报告模板实体")
public class ReportTemplateModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 模板id */
    @ApiModelProperty(value = "模板id")
    private String id;

    /** 模板编号 */
    @ApiModelProperty(value = "模板编号")
    @Excel(name = "模板编号")
    private String templateNum;

    /** 仪器类型 */
    @ApiModelProperty(value = "仪器类型")
    @Excel(name = "仪器类型")
    private String instrumentType;

    /** 模板名称 */
    @ApiModelProperty(value = "模板名称")
    @Excel(name = "模板名称")
    private String templateName;

    /** 封面地址 */
    @ApiModelProperty(value = "封面地址")
    @Excel(name = "封面地址")
    private String coverAddress;

    /** 内容地址 */
    @ApiModelProperty(value = "内容地址")
    @Excel(name = "内容地址")
    private String contentAddress;

    /** 上传人 */
    @ApiModelProperty(value = "上传人")
    @Excel(name = "上传人")
    private String uploader;

    /** 文件大小 */
    @Excel(name = "文件大小")
    private Long fileSize;

    /** 上传时间 */
    @ApiModelProperty(value = "上传时间")
    //@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date uploadtime;

    private OnFile onFile;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setTemplateNum(String templateNum) 
    {
        this.templateNum = templateNum;
    }

    public String getTemplateNum() 
    {
        return templateNum;
    }
    public void setInstrumentType(String instrumentType) 
    {
        this.instrumentType = instrumentType;
    }

    public String getInstrumentType() 
    {
        return instrumentType;
    }
    public void setTemplateName(String templateName) 
    {
        this.templateName = templateName;
    }

    public String getTemplateName() 
    {
        return templateName;
    }
    public void setCoverAddress(String coverAddress) 
    {
        this.coverAddress = coverAddress;
    }

    public String getCoverAddress() 
    {
        return coverAddress;
    }
    public void setContentAddress(String contentAddress) 
    {
        this.contentAddress = contentAddress;
    }

    public String getContentAddress() 
    {
        return contentAddress;
    }
    public void setUploader(String uploader) 
    {
        this.uploader = uploader;
    }

    public String getUploader() 
    {
        return uploader;
    }
    public void setUploadtime(Date uploadtime) 
    {
        this.uploadtime = uploadtime;
    }

    public Date getUploadtime() 
    {
        return uploadtime;
    }

    public OnFile getOnFile() {
        return onFile;
    }

    public void setOnFile(OnFile onFile) {
        this.onFile = onFile;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("templateNum", getTemplateNum())
            .append("instrumentType", getInstrumentType())
            .append("templateName", getTemplateName())
            .append("coverAddress", getCoverAddress())
            .append("contentAddress", getContentAddress())
            .append("uploader", getUploader())
            .append("uploadtime", getUploadtime())
            .toString();
    }
}
